/* FFMPEG config file fo MSVC compilation - NOT OPTIMIZED, ONLY DECODERS/DEMUXERS WORK ! */



#ifndef __FFMPEG_CONFIG_MSVC_H_
#define __FFMPEG_CONFIG_MSVC_H_ 1


/*WINCE defs*/
#if defined(WIN32) || defined( _WIN32_WCE)
#define strdup _strdup
#define stricmp _stricmp
#define strnicmp _strnicmp
#define strupr _strupr
#define strcasecmp stricmp
#define strncasecmp strnicmp
#define snprintf _snprintf
#define vsnprintf _vsnprintf
#endif

#ifdef _WIN32_WCE
#define ENOENT 2
#define EINTR  4
#define EIO    5
#define EAGAIN 11
#define ENOMEM 12
#define EINVAL 22
#define EPIPE  32

#define CONFIG_WINCE	1
#endif


#define CONFIG_ENCODERS 1
#define CONFIG_DECODERS 1

#define CONFIG_MUXERS 1
#define CONFIG_DEMUXERS 1
#define CONFIG_FFMPEG 0
#define CONFIG_FFPLAY 0
#define CONFIG_MEMALIGN_HACK 1
#define CONFIG_MPEGAUDIO_HP 1
#define CONFIG_PROTOCOLS 0
#define TARGET_MMX 0


#define CONFIG_MPEG1VIDEO_ENCODER 1
#define ENABLE_MPEG1VIDEO_ENCODER 1
#define CONFIG_MPEG2VIDEO_ENCODER 1
#define ENABLE_MPEG2VIDEO_ENCODER 1
#define CONFIG_H263_ENCODER 1
#define ENABLE_H263_ENCODER 1


#define CONFIG_AC3_ENCODER 1
#define ENABLE_AC3_ENCODER 1

#define CONFIG_TGP_MUXER 1
#define ENABLE_TGP_MUXER 1
#define CONFIG_TG2_MUXER 1
#define ENABLE_TG2_MUXER 1



#define CONFIG_LIBAMR_NB 1
#define ENABLE_LIBAMR_NB 1
#define ENABLE_LIBAMR_NB_ENCODER 1

#define CONFIG_MPEG4_ENCODER 1
#define ENABLE_MPEG4_ENCODER 1
#define CONFIG_MSMPEG4V1_ENCODER 1
#define ENABLE_MSMPEG4V1_ENCODER 1
#define CONFIG_MSMPEG4V2_ENCODER 1
#define ENABLE_MSMPEG4V2_ENCODER 1
#define CONFIG_MSMPEG4V3_ENCODER 1
#define ENABLE_MSMPEG4V3_ENCODER 1
#define CONFIG_LIBX264_ENCODER 1
#define ENABLE_LIBX264_ENCODER 1
#define CONFIG_LIBXVID_ENCODER 1
#define ENABLE_LIBXVID_ENCODER 1
#define CONFIG_FILE_PROTOCOL 1
#define ENABLE_FILE_PROTOCOL 1


#define CONFIG_LIBMP3LAME_ENCODER 1
#define ENABLE_LIBMP3LAME_ENCODER 1

#define CONFIG_LIBFAAC_ENCODER 1
#define ENABLE_LIBFAAC_ENCODER 1

#define CONFIG_MUXERS 1

#define CONFIG_MPEG1VCD_MUXER 1
#define ENABLE_MPEG1VCD_MUXER 1

#define CONFIG_MPEG1SYSTEM_MUXER 1
#define ENABLE_MPEG1SYSTEM_MUXER 1
#define CONFIG_MPEG1VIDEO_MUXER 1
#define ENABLE_MPEG1VIDEO_MUXER 1

#define CONFIG_MPEG2DVD_MUXER 1
#define ENABLE_MPEG2DVD_MUXER 1

#define CONFIG_MPEG2SVCD_MUXER 1
#define ENABLE_MPEG2SVCD_MUXER 1

#define CONFIG_MPEG2VIDEO_MUXER 1
#define ENABLE_MPEG2VIDEO_MUXER 1

#define CONFIG_MPEG2VOB_MUXER 1
#define ENABLE_MPEG2VOB_MUXER 1

#define CONFIG_MPEGTS_MUXER 1
#define ENABLE_MPEGTS_MUXER 1

#define CONFIG_MP3_MUXER 1
#define ENABLE_MP3_MUXER 1

#define  CONFIG_MOV_MUXER 1
#define  ENABLE_MOV_MUXER 1
#define  CONFIG_MP4_MUXER 1
#define  ENABLE_MP4_MUXER 1
#define  CONFIG_PSP_MUXER 1
#define  ENABLE_PSP_MUXER 1



#define ENABLE_H263_DECODER 0
#define ENABLE_H263I_DECODER 0
#define ENABLE_FLV_DECODER 0
#define ENABLE_RV10_DECODER 0
#define ENABLE_RV20_DECODER 0
#define ENABLE_MPEG4_DECODER 0
#define ENABLE_H263P_ENCODER 0
#define ENABLE_FLV_ENCODER 0
#define ENABLE_RV10_ENCODER 0
#define ENABLE_RV20_ENCODER 0
#define ENABLE_H264_DECODER 0
#define ENABLE_VP3_DECODER 0
#define ENABLE_VP5_DECODER 0
#define ENABLE_VP6_DECODER 0
#define ENABLE_THEORA_DECODER 0

#define ENABLE_SMALL 0
#define  ENABLE_THREADS 1


////copy from mingw create config.h

#define ENABLE_GRAY 0
#define ENABLE_H261_ENCODER 0
#define ENABLE_H261_DECODER 0
#define ENABLE_MJPEG_ENCODER 0
#define ENABLE_LJPEG_ENCODER 0
/// copycopy from mingw create config.h 
#define ENABLE_MPEGVIDEO_DEMUXER 1
#define CONFIG_MPEGVIDEO_DEMUXER 1

#define ENABLE_MPEGVIDEO_PARSER 1
#define CONFIG_MPEGVIDEO_PARSER 1
#define ENABLE_MPEGPS_DEMUXER 1
#define CONFIG_MPEGPS_DEMUXER 1
#define ENABLE_MP2_ENCODER 1
#define CONFIG_MP2_ENCODER 1
#define ENABLE_MP2_DECODER 1
#define CONFIG_MP2_DECODER 1
#define ENABLE_MPEG1VIDEO_DECODER 1
#define CONFIG_MPEG1VIDEO_DECODER 1
#define ENABLE_MPEGAUDIO_PARSER 1
#define CONFIG_MPEGAUDIO_PARSER 1
 



#ifdef __GNUC__
#include <stdint.h>
#else
#ifndef __attribute__
#define __attribute__(x) /**/
#endif
#define lrintf(x) (int)(x)
#define EMULATE_FAST_INT
#endif




#endif //__FFMPEG_CONFIG_MSVC_H_